package abc.secgroup.music_backend.entity;

import javax.persistence.*;

@Entity
@Table(name="t_lyric")
public class LyricDO extends ResourceDO{

    //全局唯一ID
    @Column(name="guid")
    private String guid;


    //歌词信息
    @Column(name="lrc_info")
    private String info;

    //歌词对应的歌曲
    @OneToOne(targetEntity = RepositoryDO.class,cascade = CascadeType.ALL)
    private RepositoryDO repo;

    public String getGuid() {
        return guid;
    }

    public void setGuid(String guid) {
        this.guid = guid;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public RepositoryDO getRepo() {
        return repo;
    }

    public void setRepo(RepositoryDO repo) {
        this.repo = repo;
    }
}
